/*
 * Created by JFormDesigner on Mon Apr 11 22:46:23 CST 2022
 */

package com.system.www.servlet.public1;

import java.awt.*;
import javax.swing.*;

/**
 * @author unknown
 */
public class MsgUi extends JFrame {
    String msg;
    public MsgUi(String msg) {
        this.msg = msg;
        initComponents();
        this.setBound();
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    }
    public void setBound(){
        this.setBounds(300,400,300,300);
    }

    private void initComponents() {
        JLabel label1 = new JLabel();

        //======== this ========
        var contentPane = getContentPane();
        contentPane.setLayout(null);

        //---- label1 ----
        label1.setText(msg);
        label1.setPreferredSize(new Dimension(20, 22));
        contentPane.add(label1);
        label1.setBounds(100, 65, 165, 70);

    }
}
